package com.moba.emums;

/** @创建人: dingning @创建时间: 2018-08-27 11:08 */
public enum BiGetType {
  BI_GET_TYPE_1("排单收益", 1),
  BI_GET_TYPE_2("排单获取业绩", 2),
  BI_GET_TYPE_3("排单冻结", 3),
  BI_GET_TYPE_10("转账", 10),
  BI_GET_TYPE_11("提币", 11),
  BI_GET_TYPE_12("审核不通过退款", 12),
  BI_GET_TYPE_20("团队分红", 20),
  BI_GET_TYPE_30("领导分红", 30),
  BI_GET_TYPE_40("加权分红", 40),
  BI_GET_TYPE_50("同级奖励", 50),
  BI_GET_TYPE_60("升级奖励", 60),
  BI_GET_TYPE_70("排单扣除GHMI", 70),
  BI_GET_TYPE_80("矿源充值", 80),
  BI_GET_TYPE_90("排单减少矿源", 90);

  public static String getName(int index) {
    for (BiGetType c : BiGetType.values()) {
      if (c.getIndex() == index) {
        return c.name;
      }
    }
    return null;
  }

  private BiGetType(String name, int index) {
    this.name = name;
    this.index = index;
  }

  private String name;

  private int index;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getIndex() {
    return index;
  }

  public void setIndex(int index) {
    this.index = index;
  }
}
